import java.util.Scanner;
public class Sixth{
	public static void main(String[] args){
	Scanner sc =new Scanner(System.in);
	System.out.println("Please enter whether to become a member of the supermarket:");
	String vip =sc.next();
	System.out.println("Please enter the total product price:");
	Double price  =sc.nextDouble();
	if ("yes".equals(vip)&&price>100){
	System.out.println("You get a 20% discount"+"and the  final payment is required:"+(price*0.8)+"dollars");
	}else if ("yes".equals(vip)&&price<100){
	System.out.println("You get a 10% discount"+"and the  final payment is required:"+(price*0.9)+"dollars");
	}else if ("no".equals(vip)&&price>100){
	System.out.println("You get a 10% discount"+"and the  final payment is required:"+(price*0.9)+"dollars");
	}else{
	System.out.println("You do not participate in the discount"+"and the  final payment is required:"+(price)+"dollars");
	}
	}
}